home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Hardware / Mac OS USB DDK / Mac OS USB DDK 1.4.1 / Examples / USBSampleStorageDriver / UnitTableDriver / UnitTableDoDriverIO.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-25  |  1.3 KB  |  46 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        UnitTableDoDriverIO.h
  3.  
  4.     Contains:    This file contains the sole entry point into the driver
  5.                 from the system, and the sole return command completion point.
  6.  
  7.     Version:    1.0
  8.  
  9.     Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11. */
  12.  
  13. #pragma once
  14.  
  15. #include <DriverServices.h>
  16.  
  17. //------------------------------------------------------------------------------
  18. //    Debugging Macros-
  19. //    This will turn DebugStr's on and off throughout the driver
  20. //----------------------------------------------------------------------------------
  21. #ifndef Include_Debugging
  22.     #define Include_Debugging 0            // Set to 1 to enable debugging
  23. #endif
  24.  
  25. #if Include_Debugging
  26.     #define IfDebugging(str)    SysDebugStr(str)
  27. #else
  28.     #define IfDebugging(str)
  29. #endif
  30.  
  31. //----------------------------------------------------------------------------------
  32. //    The DoDriverIO Function -
  33. //     This function is the only entry to our driver from the Device Manager
  34. //----------------------------------------------------------------------------------
  35.  
  36. extern OSStatus DoDriverIO(    AddressSpaceID        addressSpaceID,
  37.                             IOCommandID            ioCommandID,
  38.                             IOCommandContents    ioCommandContents,
  39.                             IOCommandCode        ioCommandCode,
  40.                             IOCommandKind        ioCommandKind );
  41.  
  42.  
  43.  
  44. extern OSStatus FinishCommandProcessing(     IOCommandID ioCommandID,
  45.                                             OSStatus incomingStatus );
  46.